
#@layoutT('产品表')
#define main()
   #@formStart()
      #@queryStart('关键词查询')
   <input type="search" name="searchName" autocomplete="off" class="layui-input" placeholder="搜索关键词" style="padding-left:20px"/>
   <i class="layui-icon layui-icon-search" style="position: absolute;top:12px;left:2px"></i>
      #@queryEnd()
   #@formEnd()

   #@table()
#end

#define js()
<!-- 分页表格 -->
<script>
    gridArgs.title='产品';
    gridArgs.dataId='id';
    gridArgs.deleteUrl='#(path)/portal/business/erpProduct/delete';
    gridArgs.updateUrl='#(path)/portal/business/erpProduct/edit/';
    gridArgs.addUrl='#(path)/portal/business/erpProduct/add';
    gridArgs.gridDivId ='maingrid';
    initGrid({id : 'maingrid'
        ,elem : '#maingrid'
        //,toolbar:'default'
        ,cellMinWidth: 100
        ,cols : [ [
				 {title: '主键',field : 'id',width : 35,checkbox : true},
				 {title:'序号',type:'numbers',width:35},
				 {title:'产品编号',field:'product_no'},
				 {title:'产品名称',field:'product_name'},
				 {title:'产品型号',field:'product_marque'},
				 {title:'产品成本',field:'product_cost'},
				 {title:'创建时间',field:'created_time'},

            {fixed:'right',width : 180,align : 'left',toolbar : '#bar_maingrid'}
            ] ]
        ,url:"#(path)/portal/business/erpProduct/list"
        ,searchForm : 'searchForm'
    });

</script>
#end



